package SmartFurniture.Factory.Xiaomi;

import SmartFurniture.AbstractBuilder.SpeakerBuilder;
import SmartFurniture.Entity.Speaker;

public class XiaomiSpeakerBuilder extends SpeakerBuilder {

    public void HuaWeiSpeakerBuilder() {
        this.speaker = new Speaker();
    }

    public void buildSpeakername() {
        speaker.setSpeakername("小米音箱");
    }

    public void buildSoundRecognition() {
        speaker.setSoundRecognition("小米语音识别系统");
    }

    public void buildWifi() {
        speaker.setWifi("小米WIFI-5G");
    }

    public void buildSoundEffect() {
        speaker.setSoundEffect("小米特供音效");
    }

    public void buildHelper() {
        speaker.setHelper("小爱小爱");
    }

    public Speaker getSpeaker() {
        System.out.println("组装小米音箱");
        return speaker;
    }
}
